<{include file="top.tpl"}>
<{if $webstate==1}><!--是否关闭系统-->
<script type="text/javascript">
function getArticleComment(){
	xajax.$('commentWrapper').innerHTML = "<div><{$loading}></div>";
	xajax_getArticleComment(<{$aid}>);
}
function getCategoryList(){
	//xajax.$('panel-content').innerHTML="<ul><li><a href=\"index.php\"><b>首页</b></a></li><li><{$loading}></li></ul>";
	xajax_getCategoryList();
	return false;
}
function getCalendar(year,month){
	xajax.$('panelCalendar').innerHTML = "<h5>日历</h5><li><{$loading}></li>";
	xajax_getCalendar(year,month);
	return false;
}
function getRecentArticles(){
	xajax.$('panelArticleContent').innerHTML = "<ul><li><{$loading}></li></ul>";
	xajax_getRecentArticles();
	return false;
}
function getComment(){
	xajax.$('panelCommentContent').innerHTML = "<ul><li><{$loading}></li></ul>";
	xajax_getComment();
	return false;
}
function getStats(){
	xajax.$('panelStatsContent').innerHTML = "<li><{$loading}></li>";
	xajax_getStats();
	return false;
}
function getLinks(){
	xajax.$('panelLinksContent').innerHTML = "<{$loading}>";
	xajax_getLinks();
	return false;
	
}
function userLogin(){
	//document.getElementById('authcode').movie = "/sdm/include/flvcode.php?id=12";
	xajax.$('Loginbtn').disabled = true;
	xajax_userLogin(xajax.getFormValues("login"));
	return false;
}
function addViews(aid){
	xajax_addViews(aid);
	return false;
}
function addComment(){
	xajax.$('btnSubmit').disabled = true;
	xajax_addComment(xajax.getFormValues("addcomment"));
	return false;
	//this.disabled=true;
	//document.inputform.submit();
}
</script>
<div id="mainWrapper">
<div id="content" class="content">
<div id="innerContent">
<!--主体内容-->
	<!--文章头部，显示前一文章后一文章-->
	<DIV class=article-top> 
		  <DIV class=prev-article><A title= 前一文章，如果有 href="/<{$virdir}>article.asp?id=47"><<前一文章，如果有...</A></DIV>      
		  <DIV class=next-article><A title= 后一文章，如果有 href="/<{$virdir}>article.asp?id=47">后一编文章，如果有的话...>></a></DIV>
		  <DIV class=category-label><A href="/<{$virdir}>index.php/C/<{$article.cid}>">Category: <{$article.cname}></A></DIV>
	</DIV>
	<!--文章头部结束-->
	
	<!--文章主体内容-->
	<DIV class=textbox> 
	<DIV class=textbox-title> 
	  <H4><{$article.title}></H4>
	  <DIV class=textbox-label>[ <{$article.adddate|date_format:"%Y-%m-%d %H:%M:%S"}> | Author: <A href="/<{$virdir}>user.asp?act=view&amp;id=1"><{$article.author}></A> | <{$article.submitip}> ]  <A title=Edit href="/<{$virdir}>article.asp?act=edit&amp;id=48"><IMG alt=Edit src="/<{$virdir}>styles/default/images/icon_edit.gif"></A>  <A title=Delete onclick="return confirm('Are you sure to delete this article??')" href="http://www.sdmblog.cn/article.asp?act=delete&amp;id=48"><IMG alt=Delete src="/<{$virdir}>styles/default/images/icon_del.gif"></A> 
	  </DIV>
	</DIV>
	<DIV class=textbox-fontsize>Font Size: <A title="Font Size: Large" href="javascript:setFontSize(14)">Large</A> | <A title="Font Size: Medium" href="javascript:setFontSize(11)">Medium</A> | <A title="Font Size: Small" href="javascript:setFontSize(9)">Small</A> </DIV>
	<DIV class=textbox-content id=textboxContent>
	<{$article.content}>
	  <DIV class=textbox-urls><IMG class=meta-button alt="Comments Feed" src="/<{$virdir}>styles/default/images/rss_comment.png"> <B>Comments Feed:</B> http://www.sdmblog.cn/feed.asp?q=comment&id=48 
	  </DIV>
	</DIV>
  </DIV>
  <BR>
	<!--文章主体内容结束-->
	<SCRIPT language=javascript src="/<{$virdir}>Scripts/common.js" type=text/javascript></SCRIPT>
	<A name=comments></A>
	<!--评论-->
	<DIV class=comment-wrapper id=commentWrapper> 
	   
	</DIV>
    <!--评论结束-->
	<BR>
	<A name=commentbox></A>
	<{if $islogin!=1 }><div>你需要登录后刷新本页才能回复</div><{/if}>
	<DIV id=commentForm <{if $islogin!=1 }>style="display:none"<{/if}>> 
            <SCRIPT language=javascript src="/<{$virdir}>Scripts/messageform.js" type=text/javascript></SCRIPT>
            <FORM id="inputform" name=addcomment action="javascript:void(null);" method=post onsubmit="addComment();">
              <TABLE class=formbox-comment cellSpacing=1 cellPadding=4 width="100%" 
align=center border=0>
                <TBODY>
                  <TR> 
                    <TD class=formbox-comment-title colSpan=2>Post Comment</TD>
                  </TR>
                  <TR> 
                    <TD class=formbox-comment-rowheader width=140> 
					<DIV class=panel-smilies> 
                        <DIV class=panel-smilies-title>Smilies</DIV>
                        <DIV class=panel-smilies-content>
						  <A href="javascript:insertSmilies('[smile]')"><IMG alt=[smile] src="/<{$virdir}>styles/default/images/smilies/icon_smile.gif"></A> 
                          <A href="javascript:insertSmilies('[confused]')"><IMG alt=[confused] src="/<{$virdir}>styles/default/images/smilies/icon_confused.gif"></A> 
                          <A href="javascript:insertSmilies('[cool]')"><IMG alt=[cool] src="/<{$virdir}>styles/default/images/smilies/icon_cool.gif"></A> 
                          <A href="javascript:insertSmilies('[cry]')"><IMG alt=[cry] src="/<{$virdir}>styles/default/images/smilies/icon_cry.gif"></A> 
                          <BR>
                          <A href="javascript:insertSmilies('[eek]')"><IMG alt=[eek] src="/<{$virdir}>styles/default/images/smilies/icon_eek.gif"></A> 
                          <A href="javascript:insertSmilies('[angry]')"><IMG alt=[angry] src="/<{$virdir}>styles/default/images/smilies/icon_angry.gif"></A> 
                          <A href="javascript:insertSmilies('[wink]')"><IMG alt=[wink] src="/<{$virdir}>styles/default/images/smilies/icon_wink.gif"></A> 
                          <A href="javascript:insertSmilies('[sweat]')"><IMG alt=[sweat] src="/<{$virdir}>styles/default/images/smilies/icon_sweat.gif"></A> 
                          <BR>
                          <A href="javascript:insertSmilies('[lol]')"><IMG alt=[lol] src="/<{$virdir}>styles/default/images/smilies/icon_lol.gif"></A> 
                          <A href="javascript:insertSmilies('[stun]')"><IMG alt=[stun] src="/<{$virdir}>styles/default/images/smilies/icon_stun.gif"></A> 
                          <A href="javascript:insertSmilies('[razz]')"><IMG alt=[razz] src="/<{$virdir}>styles/default/images/smilies/icon_razz.gif"></A> 
                          <A href="javascript:insertSmilies('[redface]')"><IMG alt=[redface] src="/<{$virdir}>styles/default/images/smilies/icon_redface.gif"></A> 
                          <BR>
                          <A href="javascript:insertSmilies('[rolleyes]')"><IMG alt=[rolleyes] src="/<{$virdir}>styles/default/images/smilies/icon_rolleyes.gif"></A> 
                          <A href="javascript:insertSmilies('[sad]')"><IMG alt=[sad] src="/<{$virdir}>styles/default/images/smilies/icon_sad.gif"></A> 
                          <A href="javascript:insertSmilies('[yes]')"><IMG alt=[yes] src="/<{$virdir}>styles/default/images/smilies/icon_yes.gif"></A> 
                          <A href="javascript:insertSmilies('[no]')"><IMG alt=[no] src="/<{$virdir}>styles/default/images/smilies/icon_no.gif"></A> 
                          <BR>
                          <A href="javascript:insertSmilies('[heart]')"><IMG alt=[heart] src="/<{$virdir}>styles/default/images/smilies/icon_heart.gif"></A> 
                          <A href="javascript:insertSmilies('[star]')"><IMG alt=[star] src="/<{$virdir}>styles/default/images/smilies/icon_star.gif"></A> 
                          <A href="javascript:insertSmilies('[music]')"><IMG alt=[music] src="/<{$virdir}>styles/default/images/smilies/icon_music.gif"></A> 
                          <A href="javascript:insertSmilies('[idea]')"><IMG alt=[idea] src="/<{$virdir}>styles/default/images/smilies/icon_idea.gif"></A> 
                          <BR>
                        </DIV>
                      </DIV>
                      <DIV style="FONT-WEIGHT: normal; TEXT-ALIGN: left">
                        <INPUT type=checkbox CHECKED value=true name=e_ubb>
                        Enable UBB Codes<BR><INPUT type=checkbox CHECKED value=true name=e_autourl>
                        Auto Convert URL<BR> <INPUT type=checkbox CHECKED value=true name=e_smilies>
                        Show Smilies<BR> <INPUT type=checkbox value=true name=comm_hidden>
                        Hidden Comment 
					  </DIV>
					</TD>
                    <TD id="comment-content" class=formbox-comment-content vAlign=top> 
						<DIV id="commentauthcode" style="PADDING-BOTTOM: 5px" >
							<{if $islogin==1 }>
							<INPUT class=text maxLength=5 size=5 name=authnum>
							<script>document.write("<s"+"cript src='/<{$virdir}>include/makecode.php?id=1' type='text/javascript' language='javascript'></s"+"cript>")</script>
							<SPAN class=comment-text>* Please Enter the Security Code</SPAN>
							<{else}>
							请登录...
							<{/if}>
						</DIV>
                      <TEXTAREA id=message onkeyup=storeCaret(this);CtrlEnter(); style="WIDTH: 100%" onclick=storeCaret(this); name=message rows=10 cols=64 onselect=storeCaret(this);></TEXTAREA> 
                      <DIV style="PADDING-TOP: 10px">
                      <input name="articleid" value="<{$aid}>" type="hidden">
                        <INPUT class=button onclick="<{if $islogin!=1 }>alert('Please login!');return false;<{/if}>" type="submit" value=" Post Comment " name=btnSubmit>
                          
                        <INPUT class=button type=reset value=" Reset Form " name=Reset>
                      </DIV>
					</TD>
                 </TR>
              </TBODY>
           </TABLE>
        </FORM>
    </DIV>
</div>
</div>
<{include file="left.tpl"}>
<script>
getArticleComment();
getCategoryList();
getRecentArticles();
getComment();
getCalendar(<{$smarty.now|date_format:"%Y"}>,<{$smarty.now|date_format:"%m"}>);
getStats();
getLinks();
addViews(<{$aid}>);
</script>
<{/if}><!--是否关闭系统-->
<{include file="foot.tpl"}>